<template>
  <div class="dashboard-container">
    <div class="dashboard-text">用户名: {{ name }}</div>
    <div class="dashboard-text">考生姓名: {{ nick_name }}</div>
    <div class="dashboard-text" v-if="isSuper == 0">管理员权限: 普通用户</div>
    <div class="dashboard-text" v-else>管理员权限: 超级用户</div>
    <!-- <video controls>
      <source src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" type="video/mp4">
      Your browser does not support the video tag.
    </video> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'


export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name',
      'isSuper',
      'nick_name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }

  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
